package com.lexian.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lexian.entity.Goodsattr;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 商品业务类
 */
@Data
public class GoodsVo {
    @ApiModelProperty(value = "商品编号")
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Long goodsId;

    @ApiModelProperty(value = "所属类别")
    private Long categoryId;

    @ApiModelProperty(value = "商品名")
    private String name;

    @ApiModelProperty(value = "商品图")
    private String img;

    @ApiModelProperty(value = "商品单价")
    private Double unitPrice;

    @ApiModelProperty(value = "商品计量单位")
    private String unit;

    @ApiModelProperty(value = "商品状态")
    private Integer status;

    @ApiModelProperty(value = "商品重量")
    private Double weight;

    @ApiModelProperty(value = "商品销售时间")
    private Date onsaleTime;

    @ApiModelProperty(value = "商品库存")
    private Double inventory;

    @ApiModelProperty(value = "商品已销售数量")
    private Integer saleCount;

    @ApiModelProperty(value = "商品小类名")
    private String subjectName;

    private List<Goodsattr> goodsattrList;
}
